package com.goldcn.sys.dao;

import com.goldcn.sys.model.SmsTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmsTemplateMapper {
    int deleteByPrimaryKey(Long templateID);

    int insert(SmsTemplate record);

    int insertSelective(SmsTemplate record);

    SmsTemplate selectByPrimaryKey(Long templateID);

    int updateByPrimaryKeySelective(SmsTemplate record);

    int updateByPrimaryKey(SmsTemplate record);

    int insertBatch(@Param(value = "paramList") List<SmsTemplate> list);

    int deleteByCompanyInfoID(@Param(value = "companyInfoID") Long companyInfoID);

    List<SmsTemplate> searchByCompanyInfoID(@Param(value = "type") Integer type, @Param(value = "companyInfoID") Long companyInfoID);

}